package com.easybbs.entity.vo.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: yudaxian
 * @Description: 发送邮箱验证码请求参数对象
 * @DateTime: 2024/10/18 13:37
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AccountSendEmailCodeReqVO implements Serializable {
    public static final Long serialVersionUID = 1589435718000L;

    @Email(message = "邮箱格式不正确")
    @NotBlank(message = "邮箱不能为空")
    private String email;

    @NotBlank(message = "验证码不能为空")
    private String checkCode;

    @NotBlank(message = "验证码key不能为空")
    private String checkCodeKey;

    /**
     * 验证码类型：0-登录注册，1-发送邮箱验证码，这个方法中必须等于1
     */
    @NotNull(message = "验证码类型不能为空")
    private Integer codeType;

    /**
     * 邮箱验证码类型 0:注册 1:找回密码
     */
    @NotNull(message = "邮箱验证码类型不能为空")
    private Integer emailCodeType;

}
